<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::PolyMod Class Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classhelib_1_1_poly_mod-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::PolyMod Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>An object that contains an <code>NTL::ZZX</code> polynomial along with a coefficient modulus <code>p2r</code> and a polynomial modulus <code>G</code>.  
 <a href="classhelib_1_1_poly_mod.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_poly_mod_8h_source.html">PolyMod.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aeb89d0ed7ac9fa2c96e5a61caddef9d9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#aeb89d0ed7ac9fa2c96e5a61caddef9d9">PolyMod</a> ()</td></tr>
<tr class="memdesc:aeb89d0ed7ac9fa2c96e5a61caddef9d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="classhelib_1_1_poly_mod.html#aeb89d0ed7ac9fa2c96e5a61caddef9d9">More...</a><br /></td></tr>
<tr class="separator:aeb89d0ed7ac9fa2c96e5a61caddef9d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e0c863632d500d8ee62dfc55c018e3e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a8e0c863632d500d8ee62dfc55c018e3e">PolyMod</a> (const std::shared_ptr&lt; <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &gt; &amp;ringDescriptor)</td></tr>
<tr class="memdesc:a8e0c863632d500d8ee62dfc55c018e3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">No-data constructor.  <a href="classhelib_1_1_poly_mod.html#a8e0c863632d500d8ee62dfc55c018e3e">More...</a><br /></td></tr>
<tr class="separator:a8e0c863632d500d8ee62dfc55c018e3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c4c30328736418ebb5234884a23d2f8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a1c4c30328736418ebb5234884a23d2f8">PolyMod</a> (long input, const std::shared_ptr&lt; <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &gt; &amp;ringDescriptor)</td></tr>
<tr class="memdesc:a1c4c30328736418ebb5234884a23d2f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constant constructor.  <a href="classhelib_1_1_poly_mod.html#a1c4c30328736418ebb5234884a23d2f8">More...</a><br /></td></tr>
<tr class="separator:a1c4c30328736418ebb5234884a23d2f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a317a2337805b55298e8f1988d8e9149f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a317a2337805b55298e8f1988d8e9149f">PolyMod</a> (const std::vector&lt; long &gt; &amp;input, const std::shared_ptr&lt; <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &gt; &amp;ringDescriptor)</td></tr>
<tr class="memdesc:a317a2337805b55298e8f1988d8e9149f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Coefficient vector constructor.  <a href="classhelib_1_1_poly_mod.html#a317a2337805b55298e8f1988d8e9149f">More...</a><br /></td></tr>
<tr class="separator:a317a2337805b55298e8f1988d8e9149f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7dfbfce3cd28a93ca1c1cb067eeecad"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ac7dfbfce3cd28a93ca1c1cb067eeecad">PolyMod</a> (const NTL::ZZX &amp;input, const std::shared_ptr&lt; <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &gt; &amp;ringDescriptor)</td></tr>
<tr class="memdesc:ac7dfbfce3cd28a93ca1c1cb067eeecad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Polynomial constructor.  <a href="classhelib_1_1_poly_mod.html#ac7dfbfce3cd28a93ca1c1cb067eeecad">More...</a><br /></td></tr>
<tr class="separator:ac7dfbfce3cd28a93ca1c1cb067eeecad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abde46a8c8bf2c45613fbc04c7cf1f5c3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#abde46a8c8bf2c45613fbc04c7cf1f5c3">PolyMod</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;input)=default</td></tr>
<tr class="memdesc:abde46a8c8bf2c45613fbc04c7cf1f5c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default copy constructor.  <a href="classhelib_1_1_poly_mod.html#abde46a8c8bf2c45613fbc04c7cf1f5c3">More...</a><br /></td></tr>
<tr class="separator:abde46a8c8bf2c45613fbc04c7cf1f5c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ea5d7bc3cf99fb0941fd5a134b38cb7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a5ea5d7bc3cf99fb0941fd5a134b38cb7">PolyMod</a> (<a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&amp;input) noexcept=default</td></tr>
<tr class="memdesc:a5ea5d7bc3cf99fb0941fd5a134b38cb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default move constructor.  <a href="classhelib_1_1_poly_mod.html#a5ea5d7bc3cf99fb0941fd5a134b38cb7">More...</a><br /></td></tr>
<tr class="separator:a5ea5d7bc3cf99fb0941fd5a134b38cb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acabfe2e0ceb18342c0e0ad40fe451251"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#acabfe2e0ceb18342c0e0ad40fe451251">~PolyMod</a> ()=default</td></tr>
<tr class="memdesc:acabfe2e0ceb18342c0e0ad40fe451251"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="classhelib_1_1_poly_mod.html#acabfe2e0ceb18342c0e0ad40fe451251">More...</a><br /></td></tr>
<tr class="separator:acabfe2e0ceb18342c0e0ad40fe451251"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a525bedf9f9045606f4671a42a736330c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a525bedf9f9045606f4671a42a736330c">operator=</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;input)=default</td></tr>
<tr class="memdesc:a525bedf9f9045606f4671a42a736330c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="classhelib_1_1_poly_mod.html#a525bedf9f9045606f4671a42a736330c">More...</a><br /></td></tr>
<tr class="separator:a525bedf9f9045606f4671a42a736330c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7093980d7d850145dbb918c1c821930"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ac7093980d7d850145dbb918c1c821930">operator=</a> (<a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&amp;input)=default</td></tr>
<tr class="memdesc:ac7093980d7d850145dbb918c1c821930"><td class="mdescLeft">&#160;</td><td class="mdescRight">default move assignment operator  <a href="classhelib_1_1_poly_mod.html#ac7093980d7d850145dbb918c1c821930">More...</a><br /></td></tr>
<tr class="separator:ac7093980d7d850145dbb918c1c821930"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e81a6005d37be862c31f66257647770"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a8e81a6005d37be862c31f66257647770">operator=</a> (long input)</td></tr>
<tr class="memdesc:a8e81a6005d37be862c31f66257647770"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code>long</code> assignment operator, creates a constant polynomial mod G and p2r.  <a href="classhelib_1_1_poly_mod.html#a8e81a6005d37be862c31f66257647770">More...</a><br /></td></tr>
<tr class="separator:a8e81a6005d37be862c31f66257647770"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae904911b28aaf693247fe47fa5909c1d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ae904911b28aaf693247fe47fa5909c1d">operator=</a> (const std::vector&lt; long &gt; &amp;input)</td></tr>
<tr class="memdesc:ae904911b28aaf693247fe47fa5909c1d"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code>std::vector&lt;long&gt;</code> assignment operator, creates a polynomial mod G and p2r.  <a href="classhelib_1_1_poly_mod.html#ae904911b28aaf693247fe47fa5909c1d">More...</a><br /></td></tr>
<tr class="separator:ae904911b28aaf693247fe47fa5909c1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a883a1e5fbe026e6787a35a7dc6df08d6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a883a1e5fbe026e6787a35a7dc6df08d6">operator=</a> (const std::initializer_list&lt; long &gt; &amp;input)</td></tr>
<tr class="memdesc:a883a1e5fbe026e6787a35a7dc6df08d6"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code>std::initializer_list&lt;long&gt;</code> assignment operator, creates a polynomial mod G and p2r.  <a href="classhelib_1_1_poly_mod.html#a883a1e5fbe026e6787a35a7dc6df08d6">More...</a><br /></td></tr>
<tr class="separator:a883a1e5fbe026e6787a35a7dc6df08d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fa83c885a87ff65d2c05f9c708f9bb3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a4fa83c885a87ff65d2c05f9c708f9bb3">operator=</a> (const NTL::ZZX &amp;input)</td></tr>
<tr class="memdesc:a4fa83c885a87ff65d2c05f9c708f9bb3"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code>NTL::ZZX</code> assignment operator, creates a polynomial mod G and p2r.  <a href="classhelib_1_1_poly_mod.html#a4fa83c885a87ff65d2c05f9c708f9bb3">More...</a><br /></td></tr>
<tr class="separator:a4fa83c885a87ff65d2c05f9c708f9bb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c4515ed46d304782a69de45818a5ae4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a3c4515ed46d304782a69de45818a5ae4">operator long</a> () const</td></tr>
<tr class="memdesc:a3c4515ed46d304782a69de45818a5ae4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicit conversion to a <code>long</code>.  <a href="classhelib_1_1_poly_mod.html#a3c4515ed46d304782a69de45818a5ae4">More...</a><br /></td></tr>
<tr class="separator:a3c4515ed46d304782a69de45818a5ae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad390ca158e1f30d01c286c191f0c77e2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ad390ca158e1f30d01c286c191f0c77e2">operator std::vector&lt; long &gt;</a> () const</td></tr>
<tr class="memdesc:ad390ca158e1f30d01c286c191f0c77e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicit conversion to <code>std::vector&lt;long&gt;</code> (coefficient vector).  <a href="classhelib_1_1_poly_mod.html#ad390ca158e1f30d01c286c191f0c77e2">More...</a><br /></td></tr>
<tr class="separator:ad390ca158e1f30d01c286c191f0c77e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3d01319e708800c19d072ccb88c7d15"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ad3d01319e708800c19d072ccb88c7d15">operator NTL::ZZX</a> () const</td></tr>
<tr class="memdesc:ad3d01319e708800c19d072ccb88c7d15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicit conversion to an <code>NTL::ZZX</code>.  <a href="classhelib_1_1_poly_mod.html#ad3d01319e708800c19d072ccb88c7d15">More...</a><br /></td></tr>
<tr class="separator:ad3d01319e708800c19d072ccb88c7d15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14c70f6fbf3f033dcc68e5f13c643aa2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a14c70f6fbf3f033dcc68e5f13c643aa2">isValid</a> () const</td></tr>
<tr class="memdesc:a14c70f6fbf3f033dcc68e5f13c643aa2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the validity of <code>this</code>. This will be <code>false</code> iff <code>this</code> was default constructed.  <a href="classhelib_1_1_poly_mod.html#a14c70f6fbf3f033dcc68e5f13c643aa2">More...</a><br /></td></tr>
<tr class="separator:a14c70f6fbf3f033dcc68e5f13c643aa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27be7af41d6404b34e2323fc0e55feda"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a27be7af41d6404b34e2323fc0e55feda">getp2r</a> () const</td></tr>
<tr class="memdesc:a27be7af41d6404b34e2323fc0e55feda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get current p^r value.  <a href="classhelib_1_1_poly_mod.html#a27be7af41d6404b34e2323fc0e55feda">More...</a><br /></td></tr>
<tr class="separator:a27be7af41d6404b34e2323fc0e55feda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7608856927e3b03532f372de93461c9"><td class="memItemLeft" align="right" valign="top">NTL::ZZX&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ab7608856927e3b03532f372de93461c9">getG</a> () const</td></tr>
<tr class="memdesc:ab7608856927e3b03532f372de93461c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get current G value.  <a href="classhelib_1_1_poly_mod.html#ab7608856927e3b03532f372de93461c9">More...</a><br /></td></tr>
<tr class="separator:ab7608856927e3b03532f372de93461c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a9f4945fa4b42b2fb327d6df7be0da0"><td class="memItemLeft" align="right" valign="top">NTL::ZZX&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a6a9f4945fa4b42b2fb327d6df7be0da0">getData</a> () const</td></tr>
<tr class="memdesc:a6a9f4945fa4b42b2fb327d6df7be0da0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter function that returns the data of <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> as an <code>NTL::ZZX</code>.  <a href="classhelib_1_1_poly_mod.html#a6a9f4945fa4b42b2fb327d6df7be0da0">More...</a><br /></td></tr>
<tr class="separator:a6a9f4945fa4b42b2fb327d6df7be0da0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adedd16aa53c06efce61c1f7925e9c953"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#adedd16aa53c06efce61c1f7925e9c953">operator==</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;rhs) const</td></tr>
<tr class="memdesc:adedd16aa53c06efce61c1f7925e9c953"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equals operator between two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects.  <a href="classhelib_1_1_poly_mod.html#adedd16aa53c06efce61c1f7925e9c953">More...</a><br /></td></tr>
<tr class="separator:adedd16aa53c06efce61c1f7925e9c953"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a023dba8329f026d986dd9151e3279962"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a023dba8329f026d986dd9151e3279962">operator==</a> (long rhs) const</td></tr>
<tr class="memdesc:a023dba8329f026d986dd9151e3279962"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equals operator between a <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> and a <code>long</code>.  <a href="classhelib_1_1_poly_mod.html#a023dba8329f026d986dd9151e3279962">More...</a><br /></td></tr>
<tr class="separator:a023dba8329f026d986dd9151e3279962"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7406523db7c2b6578f28b32e49465e4c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a7406523db7c2b6578f28b32e49465e4c">operator==</a> (const std::vector&lt; long &gt; &amp;rhs) const</td></tr>
<tr class="memdesc:a7406523db7c2b6578f28b32e49465e4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equals operator between two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects.  <a href="classhelib_1_1_poly_mod.html#a7406523db7c2b6578f28b32e49465e4c">More...</a><br /></td></tr>
<tr class="separator:a7406523db7c2b6578f28b32e49465e4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49c5f364c9faddf4210e15f96ecc1e93"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a49c5f364c9faddf4210e15f96ecc1e93">operator==</a> (const NTL::ZZX &amp;rhs) const</td></tr>
<tr class="memdesc:a49c5f364c9faddf4210e15f96ecc1e93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equals operator between two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects.  <a href="classhelib_1_1_poly_mod.html#a49c5f364c9faddf4210e15f96ecc1e93">More...</a><br /></td></tr>
<tr class="separator:a49c5f364c9faddf4210e15f96ecc1e93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac921528707f3912cad4d6392b3e871da"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ac921528707f3912cad4d6392b3e871da"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ac921528707f3912cad4d6392b3e871da">operator!=</a> (T &amp;&amp;rhs) const</td></tr>
<tr class="memdesc:ac921528707f3912cad4d6392b3e871da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Not equals operator.  <a href="classhelib_1_1_poly_mod.html#ac921528707f3912cad4d6392b3e871da">More...</a><br /></td></tr>
<tr class="separator:ac921528707f3912cad4d6392b3e871da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97baf864ed5ebb0cd0710f22de74a9d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a97baf864ed5ebb0cd0710f22de74a9d1">negate</a> ()</td></tr>
<tr class="memdesc:a97baf864ed5ebb0cd0710f22de74a9d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Negate function.  <a href="classhelib_1_1_poly_mod.html#a97baf864ed5ebb0cd0710f22de74a9d1">More...</a><br /></td></tr>
<tr class="separator:a97baf864ed5ebb0cd0710f22de74a9d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3ce9d93a47696878e5c6d8c731da0f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ab3ce9d93a47696878e5c6d8c731da0f8">operator-</a> () const</td></tr>
<tr class="memdesc:ab3ce9d93a47696878e5c6d8c731da0f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unary minus operator.  <a href="classhelib_1_1_poly_mod.html#ab3ce9d93a47696878e5c6d8c731da0f8">More...</a><br /></td></tr>
<tr class="separator:ab3ce9d93a47696878e5c6d8c731da0f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a619cc12544185e4f526a7d57cfd18300"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a619cc12544185e4f526a7d57cfd18300">operator*</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;rhs) const</td></tr>
<tr class="memdesc:a619cc12544185e4f526a7d57cfd18300"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix multiplication operator.  <a href="classhelib_1_1_poly_mod.html#a619cc12544185e4f526a7d57cfd18300">More...</a><br /></td></tr>
<tr class="separator:a619cc12544185e4f526a7d57cfd18300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5aca5a58e932e56c680a7ec86b584c7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#af5aca5a58e932e56c680a7ec86b584c7">operator*</a> (long rhs) const</td></tr>
<tr class="memdesc:af5aca5a58e932e56c680a7ec86b584c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix multiplication operator with <code>long</code>.  <a href="classhelib_1_1_poly_mod.html#af5aca5a58e932e56c680a7ec86b584c7">More...</a><br /></td></tr>
<tr class="separator:af5aca5a58e932e56c680a7ec86b584c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea04316c93969882a215aa22c9c096b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#aea04316c93969882a215aa22c9c096b4">operator*</a> (const NTL::ZZX &amp;rhs) const</td></tr>
<tr class="memdesc:aea04316c93969882a215aa22c9c096b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix multiplication operator with <code>NTL::ZZX</code>.  <a href="classhelib_1_1_poly_mod.html#aea04316c93969882a215aa22c9c096b4">More...</a><br /></td></tr>
<tr class="separator:aea04316c93969882a215aa22c9c096b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7296018a0c04986608ae03427cd7b226"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a7296018a0c04986608ae03427cd7b226">operator+</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;rhs) const</td></tr>
<tr class="memdesc:a7296018a0c04986608ae03427cd7b226"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix plus operator.  <a href="classhelib_1_1_poly_mod.html#a7296018a0c04986608ae03427cd7b226">More...</a><br /></td></tr>
<tr class="separator:a7296018a0c04986608ae03427cd7b226"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7cf1806a333fd1109ee2776cb405591"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#aa7cf1806a333fd1109ee2776cb405591">operator+</a> (long rhs) const</td></tr>
<tr class="memdesc:aa7cf1806a333fd1109ee2776cb405591"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix plus operator with <code>long</code>.  <a href="classhelib_1_1_poly_mod.html#aa7cf1806a333fd1109ee2776cb405591">More...</a><br /></td></tr>
<tr class="separator:aa7cf1806a333fd1109ee2776cb405591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42862ee705d1b395217efbb644bcc308"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a42862ee705d1b395217efbb644bcc308">operator+</a> (const NTL::ZZX &amp;rhs) const</td></tr>
<tr class="memdesc:a42862ee705d1b395217efbb644bcc308"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix plus operator with <code>NTL::ZZX</code>.  <a href="classhelib_1_1_poly_mod.html#a42862ee705d1b395217efbb644bcc308">More...</a><br /></td></tr>
<tr class="separator:a42862ee705d1b395217efbb644bcc308"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a798047854913a8250657155c67985b96"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a798047854913a8250657155c67985b96">operator-</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;rhs) const</td></tr>
<tr class="memdesc:a798047854913a8250657155c67985b96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix minus operator.  <a href="classhelib_1_1_poly_mod.html#a798047854913a8250657155c67985b96">More...</a><br /></td></tr>
<tr class="separator:a798047854913a8250657155c67985b96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50aea89eea73d0b244eb37c2eaec705b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a50aea89eea73d0b244eb37c2eaec705b">operator-</a> (long rhs) const</td></tr>
<tr class="memdesc:a50aea89eea73d0b244eb37c2eaec705b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix minus operator with <code>long</code>.  <a href="classhelib_1_1_poly_mod.html#a50aea89eea73d0b244eb37c2eaec705b">More...</a><br /></td></tr>
<tr class="separator:a50aea89eea73d0b244eb37c2eaec705b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad105a84a0f85aac00f0b3ff9243f66f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ad105a84a0f85aac00f0b3ff9243f66f3">operator-</a> (const NTL::ZZX &amp;rhs) const</td></tr>
<tr class="memdesc:ad105a84a0f85aac00f0b3ff9243f66f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Infix minus operator with <code>NTL::ZZX</code>.  <a href="classhelib_1_1_poly_mod.html#ad105a84a0f85aac00f0b3ff9243f66f3">More...</a><br /></td></tr>
<tr class="separator:ad105a84a0f85aac00f0b3ff9243f66f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b1a8b0f3106866998738bcffffbe94d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a1b1a8b0f3106866998738bcffffbe94d">operator*=</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;otherPoly)</td></tr>
<tr class="memdesc:a1b1a8b0f3106866998738bcffffbe94d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Times equals operator with <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> rhs.  <a href="classhelib_1_1_poly_mod.html#a1b1a8b0f3106866998738bcffffbe94d">More...</a><br /></td></tr>
<tr class="separator:a1b1a8b0f3106866998738bcffffbe94d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af054761ffcdf0004660ee6000a19ac84"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#af054761ffcdf0004660ee6000a19ac84">operator*=</a> (long scalar)</td></tr>
<tr class="memdesc:af054761ffcdf0004660ee6000a19ac84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Times equals operator with <code>long</code> rhs.  <a href="classhelib_1_1_poly_mod.html#af054761ffcdf0004660ee6000a19ac84">More...</a><br /></td></tr>
<tr class="separator:af054761ffcdf0004660ee6000a19ac84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a566f5b8880054c95aba5fea56545d0ea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a566f5b8880054c95aba5fea56545d0ea">operator*=</a> (const NTL::ZZX &amp;otherPoly)</td></tr>
<tr class="memdesc:a566f5b8880054c95aba5fea56545d0ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Times equals operator with <code>NTL::ZZX</code> rhs.  <a href="classhelib_1_1_poly_mod.html#a566f5b8880054c95aba5fea56545d0ea">More...</a><br /></td></tr>
<tr class="separator:a566f5b8880054c95aba5fea56545d0ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4399531354b0fad4ec28ac31fc79d102"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a4399531354b0fad4ec28ac31fc79d102">operator+=</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;otherPoly)</td></tr>
<tr class="memdesc:a4399531354b0fad4ec28ac31fc79d102"><td class="mdescLeft">&#160;</td><td class="mdescRight">Plus equals operator with <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> rhs.  <a href="classhelib_1_1_poly_mod.html#a4399531354b0fad4ec28ac31fc79d102">More...</a><br /></td></tr>
<tr class="separator:a4399531354b0fad4ec28ac31fc79d102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a657634e52ced63080a31682530c6c9fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a657634e52ced63080a31682530c6c9fd">operator+=</a> (long scalar)</td></tr>
<tr class="memdesc:a657634e52ced63080a31682530c6c9fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Plus equals operator with <code>long</code> rhs.  <a href="classhelib_1_1_poly_mod.html#a657634e52ced63080a31682530c6c9fd">More...</a><br /></td></tr>
<tr class="separator:a657634e52ced63080a31682530c6c9fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8153dc9bb725b98098e1a246c03901db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a8153dc9bb725b98098e1a246c03901db">operator+=</a> (const NTL::ZZX &amp;otherPoly)</td></tr>
<tr class="memdesc:a8153dc9bb725b98098e1a246c03901db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Plus equals operator with <code>NTL::ZZX</code> rhs.  <a href="classhelib_1_1_poly_mod.html#a8153dc9bb725b98098e1a246c03901db">More...</a><br /></td></tr>
<tr class="separator:a8153dc9bb725b98098e1a246c03901db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebd32d67c62394c84670527066d0c2c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#aebd32d67c62394c84670527066d0c2c2">operator-=</a> (const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;otherPoly)</td></tr>
<tr class="memdesc:aebd32d67c62394c84670527066d0c2c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Minus equals operator with <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> rhs.  <a href="classhelib_1_1_poly_mod.html#aebd32d67c62394c84670527066d0c2c2">More...</a><br /></td></tr>
<tr class="separator:aebd32d67c62394c84670527066d0c2c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9965cb128be0bf98693def23f0768c3f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a9965cb128be0bf98693def23f0768c3f">operator-=</a> (long scalar)</td></tr>
<tr class="memdesc:a9965cb128be0bf98693def23f0768c3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Minus equals operator with <code>long</code> rhs.  <a href="classhelib_1_1_poly_mod.html#a9965cb128be0bf98693def23f0768c3f">More...</a><br /></td></tr>
<tr class="separator:a9965cb128be0bf98693def23f0768c3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ac80dd3ec30b6b0b35ecc965e5fadcb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a4ac80dd3ec30b6b0b35ecc965e5fadcb">operator-=</a> (const NTL::ZZX &amp;otherPoly)</td></tr>
<tr class="memdesc:a4ac80dd3ec30b6b0b35ecc965e5fadcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Minus equals operator with <code>NTL::ZZX</code> rhs.  <a href="classhelib_1_1_poly_mod.html#a4ac80dd3ec30b6b0b35ecc965e5fadcb">More...</a><br /></td></tr>
<tr class="separator:a4ac80dd3ec30b6b0b35ecc965e5fadcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a0c68a6c4a6f71d995af3e35f048b2655"><td class="memItemLeft" align="right" valign="top">std::istream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#a0c68a6c4a6f71d995af3e35f048b2655">operator&gt;&gt;</a> (std::istream &amp;is, <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;poly)</td></tr>
<tr class="memdesc:a0c68a6c4a6f71d995af3e35f048b2655"><td class="mdescLeft">&#160;</td><td class="mdescRight">Input shift operator.  <a href="classhelib_1_1_poly_mod.html#a0c68a6c4a6f71d995af3e35f048b2655">More...</a><br /></td></tr>
<tr class="separator:a0c68a6c4a6f71d995af3e35f048b2655"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad95f0357c85ab31896c211a12926233a"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_poly_mod.html#ad95f0357c85ab31896c211a12926233a">operator&lt;&lt;</a> (std::ostream &amp;os, const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;poly)</td></tr>
<tr class="memdesc:ad95f0357c85ab31896c211a12926233a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output shift operator.  <a href="classhelib_1_1_poly_mod.html#ad95f0357c85ab31896c211a12926233a">More...</a><br /></td></tr>
<tr class="separator:ad95f0357c85ab31896c211a12926233a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An object that contains an <code>NTL::ZZX</code> polynomial along with a coefficient modulus <code>p2r</code> and a polynomial modulus <code>G</code>. </p>
<p>A <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> object can be considered to be an element of <img class="formulaInl" alt="$\mathbb{Z}_{p^r}[x]/G$" src="form_6.png" width="49" height="14"/> where <img class="formulaInl" alt="$p^r$" src="form_7.png" width="13" height="11"/> and <img class="formulaInl" alt="$ G$" src="form_8.png" width="10" height="10"/> are the passed-in parameters <code>p2r</code> and <code>G</code>.</p>
<p>This allows for inter-<code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> operations with the modulo operations performed automatically.</p>
<p>General usage: </p><div class="fragment"><div class="line"><a class="code" href="classhelib_1_1_poly_mod.html">helib::PolyMod</a> poly(input_data, p2r, G);</div>
</div><!-- fragment --><p> Calling an operation on a default constructed <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> will throw an <code><a class="el" href="classhelib_1_1_logic_error.html" title="Inherits from Exception and std::logic_error.">helib::LogicError</a></code>. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aeb89d0ed7ac9fa2c96e5a61caddef9d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb89d0ed7ac9fa2c96e5a61caddef9d9">&#9670;&nbsp;</a></span>PolyMod() <span class="overload">[1/7]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::PolyMod </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>
<dl class="section note"><dt>Note</dt><dd><code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects constructed using this are marked as invalid. If used for any operation whether directly on a <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> or via another object such as <code><a class="el" href="classhelib_1_1_ptxt.html" title="An object that mimics the functionality of the Ctxt object, and acts as a convenient entry point for ...">Ptxt</a></code> this will produce an error. </dd></dl>

</div>
</div>
<a id="a8e0c863632d500d8ee62dfc55c018e3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e0c863632d500d8ee62dfc55c018e3e">&#9670;&nbsp;</a></span>PolyMod() <span class="overload">[2/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::PolyMod </td>
          <td>(</td>
          <td class="paramtype">const std::shared_ptr&lt; <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>ringDescriptor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>No-data constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ringDescriptor</td><td>Descriptor object for the plaintext ring. Contains p^r and G which are to be used for modular reduction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This constructor does not take in input data but can be assigned data later via <code>operator=</code>. </dd></dl>

</div>
</div>
<a id="a1c4c30328736418ebb5234884a23d2f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c4c30328736418ebb5234884a23d2f8">&#9670;&nbsp;</a></span>PolyMod() <span class="overload">[3/7]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::PolyMod </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::shared_ptr&lt; <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>ringDescriptor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constant constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>Input data as a <code>long</code>. </td></tr>
    <tr><td class="paramname">ringDescriptor</td><td>Descriptor object for the plaintext ring. Contains p^r and G which are to be used for modular reduction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This constructor accepts input data as a <code>long</code> and converts it into an <code>NTL::ZZX</code> polynomial. </dd></dl>

</div>
</div>
<a id="a317a2337805b55298e8f1988d8e9149f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a317a2337805b55298e8f1988d8e9149f">&#9670;&nbsp;</a></span>PolyMod() <span class="overload">[4/7]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::PolyMod </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::shared_ptr&lt; <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>ringDescriptor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Coefficient vector constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>Input data as a vector of <code>long</code> (the i'th element of the vector corresponds to the coefficient of x^i). </td></tr>
    <tr><td class="paramname">ringDescriptor</td><td>Descriptor object for the plaintext ring. Contains p^r and G which are to be used for modular reduction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This constructor accepts input data as a <code>std::vector&lt;long&gt;</code> and converts it into an <code>NTL::ZZX</code> polynomial. </dd></dl>

</div>
</div>
<a id="ac7dfbfce3cd28a93ca1c1cb067eeecad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7dfbfce3cd28a93ca1c1cb067eeecad">&#9670;&nbsp;</a></span>PolyMod() <span class="overload">[5/7]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::PolyMod </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::shared_ptr&lt; <a class="el" href="structhelib_1_1_poly_mod_ring.html">PolyModRing</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>ringDescriptor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Polynomial constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>Input data as an <code>NTL::ZZX</code>. </td></tr>
    <tr><td class="paramname">ringDescriptor</td><td>Descriptor object for the plaintext ring. Contains p^r and G which are to be used for modular reduction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This constructor accepts input data as an <code>NTL::ZZX</code>. </dd></dl>

</div>
</div>
<a id="abde46a8c8bf2c45613fbc04c7cf1f5c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abde46a8c8bf2c45613fbc04c7cf1f5c3">&#9670;&nbsp;</a></span>PolyMod() <span class="overload">[6/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::PolyMod </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default copy constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td><code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> object that is copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5ea5d7bc3cf99fb0941fd5a134b38cb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ea5d7bc3cf99fb0941fd5a134b38cb7">&#9670;&nbsp;</a></span>PolyMod() <span class="overload">[7/7]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::PolyMod </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default move constructor. </p>

</div>
</div>
<a id="acabfe2e0ceb18342c0e0ad40fe451251"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acabfe2e0ceb18342c0e0ad40fe451251">&#9670;&nbsp;</a></span>~PolyMod()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::~PolyMod </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a6a9f4945fa4b42b2fb327d6df7be0da0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a9f4945fa4b42b2fb327d6df7be0da0">&#9670;&nbsp;</a></span>getData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NTL::ZZX helib::PolyMod::getData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Getter function that returns the data of <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> as an <code>NTL::ZZX</code>. </p>

</div>
</div>
<a id="ab7608856927e3b03532f372de93461c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7608856927e3b03532f372de93461c9">&#9670;&nbsp;</a></span>getG()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NTL::ZZX helib::PolyMod::getG </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get current G value. </p>
<dl class="section return"><dt>Returns</dt><dd>The current G value in use. </dd></dl>

</div>
</div>
<a id="a27be7af41d6404b34e2323fc0e55feda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27be7af41d6404b34e2323fc0e55feda">&#9670;&nbsp;</a></span>getp2r()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long helib::PolyMod::getp2r </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get current p^r value. </p>
<dl class="section return"><dt>Returns</dt><dd>The current p^r value in use. </dd></dl>

</div>
</div>
<a id="a14c70f6fbf3f033dcc68e5f13c643aa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14c70f6fbf3f033dcc68e5f13c643aa2">&#9670;&nbsp;</a></span>isValid()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PolyMod::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the validity of <code>this</code>. This will be <code>false</code> iff <code>this</code> was default constructed. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if <code>this</code> is valid, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<a id="a97baf864ed5ebb0cd0710f22de74a9d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97baf864ed5ebb0cd0710f22de74a9d1">&#9670;&nbsp;</a></span>negate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::negate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Negate function. </p>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post negation. </dd></dl>

</div>
</div>
<a id="a3c4515ed46d304782a69de45818a5ae4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c4515ed46d304782a69de45818a5ae4">&#9670;&nbsp;</a></span>operator long()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::operator long </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Explicit conversion to a <code>long</code>. </p>
<dl class="section note"><dt>Note</dt><dd>This function returns only the constant term even if the polynomial contains higher order terms. </dd></dl>

</div>
</div>
<a id="ad3d01319e708800c19d072ccb88c7d15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3d01319e708800c19d072ccb88c7d15">&#9670;&nbsp;</a></span>operator NTL::ZZX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::operator NTL::ZZX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Explicit conversion to an <code>NTL::ZZX</code>. </p>

</div>
</div>
<a id="ad390ca158e1f30d01c286c191f0c77e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad390ca158e1f30d01c286c191f0c77e2">&#9670;&nbsp;</a></span>operator std::vector&lt; long &gt;()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::PolyMod::operator std::vector&lt; long &gt; </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Explicit conversion to <code>std::vector&lt;long&gt;</code> (coefficient vector). </p>

</div>
</div>
<a id="ac921528707f3912cad4d6392b3e871da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac921528707f3912cad4d6392b3e871da">&#9670;&nbsp;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PolyMod::operator!= </td>
          <td>(</td>
          <td class="paramtype">T &amp;&amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Not equals operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right-hand side of comparison. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if not equal, <code>false</code> otherwise </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Simply forwards to the correct <code>operator==</code> method. </dd></dl>

</div>
</div>
<a id="aea04316c93969882a215aa22c9c096b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea04316c93969882a215aa22c9c096b4">&#9670;&nbsp;</a></span>operator*() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator* </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix multiplication operator with <code>NTL::ZZX</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of multiplication. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Product of the two objects. </dd></dl>

</div>
</div>
<a id="a619cc12544185e4f526a7d57cfd18300"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a619cc12544185e4f526a7d57cfd18300">&#9670;&nbsp;</a></span>operator*() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix multiplication operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of multiplication. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Product of the two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </dd></dl>

</div>
</div>
<a id="af5aca5a58e932e56c680a7ec86b584c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5aca5a58e932e56c680a7ec86b584c7">&#9670;&nbsp;</a></span>operator*() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator* </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix multiplication operator with <code>long</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of multiplication. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Product of the two values. </dd></dl>

</div>
</div>
<a id="a566f5b8880054c95aba5fea56545d0ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a566f5b8880054c95aba5fea56545d0ea">&#9670;&nbsp;</a></span>operator*=() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator*= </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>otherPoly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Times equals operator with <code>NTL::ZZX</code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherPoly</td><td>Right hand side of multiplication. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post multiplication. </dd></dl>

</div>
</div>
<a id="a1b1a8b0f3106866998738bcffffbe94d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b1a8b0f3106866998738bcffffbe94d">&#9670;&nbsp;</a></span>operator*=() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator*= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>otherPoly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Times equals operator with <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherPoly</td><td>Right hand side of multiplication. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post multiplication. </dd></dl>

</div>
</div>
<a id="af054761ffcdf0004660ee6000a19ac84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af054761ffcdf0004660ee6000a19ac84">&#9670;&nbsp;</a></span>operator*=() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator*= </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>scalar</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Times equals operator with <code>long</code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scalar</td><td>Right hand side of multiplication. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post multiplication. </dd></dl>

</div>
</div>
<a id="a42862ee705d1b395217efbb644bcc308"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42862ee705d1b395217efbb644bcc308">&#9670;&nbsp;</a></span>operator+() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator+ </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix plus operator with <code>NTL::ZZX</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of addition. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Sum of the two objects. </dd></dl>

</div>
</div>
<a id="a7296018a0c04986608ae03427cd7b226"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7296018a0c04986608ae03427cd7b226">&#9670;&nbsp;</a></span>operator+() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix plus operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of addition. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Sum of the two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </dd></dl>

</div>
</div>
<a id="aa7cf1806a333fd1109ee2776cb405591"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7cf1806a333fd1109ee2776cb405591">&#9670;&nbsp;</a></span>operator+() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator+ </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix plus operator with <code>long</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of addition. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Sum of the two values. </dd></dl>

</div>
</div>
<a id="a8153dc9bb725b98098e1a246c03901db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8153dc9bb725b98098e1a246c03901db">&#9670;&nbsp;</a></span>operator+=() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator+= </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>otherPoly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Plus equals operator with <code>NTL::ZZX</code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherPoly</td><td>Right hand side of addition. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post addition. </dd></dl>

</div>
</div>
<a id="a4399531354b0fad4ec28ac31fc79d102"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4399531354b0fad4ec28ac31fc79d102">&#9670;&nbsp;</a></span>operator+=() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>otherPoly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Plus equals operator with <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherPoly</td><td>Right hand side of addition. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post addition. </dd></dl>

</div>
</div>
<a id="a657634e52ced63080a31682530c6c9fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a657634e52ced63080a31682530c6c9fd">&#9670;&nbsp;</a></span>operator+=() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator+= </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>scalar</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Plus equals operator with <code>long</code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scalar</td><td>Right hand side of addition. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post addition. </dd></dl>

</div>
</div>
<a id="ab3ce9d93a47696878e5c6d8c731da0f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3ce9d93a47696878e5c6d8c731da0f8">&#9670;&nbsp;</a></span>operator-() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator- </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unary minus operator. </p>
<dl class="section return"><dt>Returns</dt><dd>Negation of the <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code>. </dd></dl>

</div>
</div>
<a id="ad105a84a0f85aac00f0b3ff9243f66f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad105a84a0f85aac00f0b3ff9243f66f3">&#9670;&nbsp;</a></span>operator-() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator- </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix minus operator with <code>NTL::ZZX</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of subtraction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Difference of the two objects. </dd></dl>

</div>
</div>
<a id="a798047854913a8250657155c67985b96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a798047854913a8250657155c67985b96">&#9670;&nbsp;</a></span>operator-() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix minus operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of subtraction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Difference of the two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </dd></dl>

</div>
</div>
<a id="a50aea89eea73d0b244eb37c2eaec705b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50aea89eea73d0b244eb37c2eaec705b">&#9670;&nbsp;</a></span>operator-() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> helib::PolyMod::operator- </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Infix minus operator with <code>long</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Right hand side of subtraction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Difference of the two values. </dd></dl>

</div>
</div>
<a id="a4ac80dd3ec30b6b0b35ecc965e5fadcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ac80dd3ec30b6b0b35ecc965e5fadcb">&#9670;&nbsp;</a></span>operator-=() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator-= </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>otherPoly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Minus equals operator with <code>NTL::ZZX</code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherPoly</td><td>Right hand side of subtraction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post subtraction. </dd></dl>

</div>
</div>
<a id="aebd32d67c62394c84670527066d0c2c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebd32d67c62394c84670527066d0c2c2">&#9670;&nbsp;</a></span>operator-=() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator-= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>otherPoly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Minus equals operator with <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherPoly</td><td>Right hand side of subtraction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post subtraction. </dd></dl>

</div>
</div>
<a id="a9965cb128be0bf98693def23f0768c3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9965cb128be0bf98693def23f0768c3f">&#9670;&nbsp;</a></span>operator-=() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator-= </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>scalar</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Minus equals operator with <code>long</code> rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scalar</td><td>Right hand side of subtraction. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to <code>*this</code> post subtraction. </dd></dl>

</div>
</div>
<a id="a4fa83c885a87ff65d2c05f9c708f9bb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fa83c885a87ff65d2c05f9c708f9bb3">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator= </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>NTL::ZZX</code> assignment operator, creates a polynomial mod G and p2r. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>Polynomial. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a525bedf9f9045606f4671a42a736330c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a525bedf9f9045606f4671a42a736330c">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&amp; helib::PolyMod::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Assignment operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>Another <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> to copy. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a883a1e5fbe026e6787a35a7dc6df08d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a883a1e5fbe026e6787a35a7dc6df08d6">&#9670;&nbsp;</a></span>operator=() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator= </td>
          <td>(</td>
          <td class="paramtype">const std::initializer_list&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>std::initializer_list&lt;long&gt;</code> assignment operator, creates a polynomial mod G and p2r. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>coefficient vector as an initializer list of <code>long</code> (the i'th element of the vector corresponds to the coefficient of x^i). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae904911b28aaf693247fe47fa5909c1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae904911b28aaf693247fe47fa5909c1d">&#9670;&nbsp;</a></span>operator=() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator= </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>std::vector&lt;long&gt;</code> assignment operator, creates a polynomial mod G and p2r. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>Coefficient vector of <code>long</code> (the i'th element of the vector corresponds to the coefficient of x^i). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8e81a6005d37be862c31f66257647770"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e81a6005d37be862c31f66257647770">&#9670;&nbsp;</a></span>operator=() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp; helib::PolyMod::operator= </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>long</code> assignment operator, creates a constant polynomial mod G and p2r. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td><code>long</code> datum. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac7093980d7d850145dbb918c1c821930"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7093980d7d850145dbb918c1c821930">&#9670;&nbsp;</a></span>operator=() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a>&amp; helib::PolyMod::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>default move assignment operator </p>

</div>
</div>
<a id="a49c5f364c9faddf4210e15f96ecc1e93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49c5f364c9faddf4210e15f96ecc1e93">&#9670;&nbsp;</a></span>operator==() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PolyMod::operator== </td>
          <td>(</td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equals operator between two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Other <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> to compare to. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if identical, <code>false</code> otherwise. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Always returns false when called on invalid <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </dd></dl>

</div>
</div>
<a id="adedd16aa53c06efce61c1f7925e9c953"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adedd16aa53c06efce61c1f7925e9c953">&#9670;&nbsp;</a></span>operator==() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PolyMod::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equals operator between two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Other <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> to compare to. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects are identical, <code>false</code> otherwise. </dd></dl>

</div>
</div>
<a id="a7406523db7c2b6578f28b32e49465e4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7406523db7c2b6578f28b32e49465e4c">&#9670;&nbsp;</a></span>operator==() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PolyMod::operator== </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; long &gt; &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equals operator between two <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>Other <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> to compare to. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if identical, <code>false</code> otherwise. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Always returns false when called on invalid <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </dd></dl>

</div>
</div>
<a id="a023dba8329f026d986dd9151e3279962"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a023dba8329f026d986dd9151e3279962">&#9670;&nbsp;</a></span>operator==() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool helib::PolyMod::operator== </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Equals operator between a <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> and a <code>long</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td><code>long</code> to compare the data against. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if identical, <code>false</code> otherwise. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Always returns false when called on invalid <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> objects. </dd></dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="ad95f0357c85ab31896c211a12926233a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad95f0357c85ab31896c211a12926233a">&#9670;&nbsp;</a></span>operator&lt;&lt;</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>poly</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Output shift operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">os</td><td>Output <code>std::ostream</code>. </td></tr>
    <tr><td class="paramname">poly</td><td><code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> object to be written. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Input <code>std::ostream</code> post writing. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>p2r and G are not serialised, see note of <code>operator&gt;&gt;</code>. </dd></dl>

</div>
</div>
<a id="a0c68a6c4a6f71d995af3e35f048b2655"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c68a6c4a6f71d995af3e35f048b2655">&#9670;&nbsp;</a></span>operator&gt;&gt;</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::istream&amp; operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>is</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_poly_mod.html">PolyMod</a> &amp;&#160;</td>
          <td class="paramname"><em>poly</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Input shift operator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">is</td><td>Input <code>std::istream</code>. </td></tr>
    <tr><td class="paramname">poly</td><td>Destination <code><a class="el" href="classhelib_1_1_poly_mod.html" title="An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...">PolyMod</a></code> object. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Input <code>std::istream</code> post reading. </dd></dl>
<dl class="section note"><dt>Note</dt><dd><code>poly</code> must be constructed with an appropriate p2r and G <b>BEFORE</b> calling this function. For example, <div class="fragment"><div class="line"><a class="code" href="classhelib_1_1_poly_mod.html#aeb89d0ed7ac9fa2c96e5a61caddef9d9">PolyMod</a> my_poly(p2r, G);</div>
<div class="line">std::cin &gt;&gt; my_poly;</div>
</div><!-- fragment --> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/HElib/include/helib/<a class="el" href="_poly_mod_8h_source.html">PolyMod.h</a></li>
<li>/HElib/src/<a class="el" href="_poly_mod_8cpp.html">PolyMod.cpp</a></li>
</ul>
</div><!-- contents -->
<div class="ttc" id="aclasshelib_1_1_poly_mod_html_aeb89d0ed7ac9fa2c96e5a61caddef9d9"><div class="ttname"><a href="classhelib_1_1_poly_mod.html#aeb89d0ed7ac9fa2c96e5a61caddef9d9">helib::PolyMod::PolyMod</a></div><div class="ttdeci">PolyMod()</div><div class="ttdoc">Default constructor.</div><div class="ttdef"><b>Definition:</b> PolyMod.cpp:21</div></div>
<div class="ttc" id="aclasshelib_1_1_poly_mod_html"><div class="ttname"><a href="classhelib_1_1_poly_mod.html">helib::PolyMod</a></div><div class="ttdoc">An object that contains an NTL::ZZX polynomial along with a coefficient modulus p2r and a polynomial ...</div><div class="ttdef"><b>Definition:</b> PolyMod.h:47</div></div>
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
